﻿//* Copyright(C) 2005-2012, all rights reserved.
//*
//* The following code is copyrighted and contains proprietary information
/* and trade secrets of Foxit Software Inc.      
**************************************************************************
*/

/**
Annot DocView事件接口类
*/


define(function (require, exports, module) {
    FXREADER.Event.CAnnot_DocViewEventHandler = function (pAnnotPlugin) {
        this.m_pAnnotPlugin = pAnnotPlugin;
    };
    FXREADER.Event.CAnnot_DocViewEventHandler.prototype =
    {
    	OnDocumentOpened: function(){
    			
        },
        OnPreDocViewResize: function () {
            if (this.m_pAnnotPlugin != null)
                this.m_pAnnotPlugin.OnPreDocViewResize();
        },
        //文档内容视图大小发生变化时触发;
        OnDocViewResize: function () {
            if (this.m_pAnnotPlugin != null)
                this.m_pAnnotPlugin.OnDocViewResize();
        },
        OnDocViewScroll: function () {
            if (this.m_pAnnotPlugin != null)
                this.m_pAnnotPlugin.OnDocViewScroll();
        },
        OnDocViewZoom: function (scale) {
        	 if (this.m_pAnnotPlugin != null)
                 this.m_pAnnotPlugin.OnDocViewZoom(scale);
        },
        OnPageIndexUpdated: function (iOldPageIndex,iCurPageIndex) {
        }
    };



    return FXREADER.Event.CAnnot_DocViewEventHandler;
});